﻿<nav id="mainNavbar" class="navbar navbar-default">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>            
            <div id="navbarWebsiteName" class="navbar-brand navbar-brand-with-top-menu">@GetWebSiteName()</div>
        </div>
        <div class="navbar-collapse collapse">    
            <form asp-controller="Search" asp-action="Index" method="get" class="navbar-form navbar-right">
                <div class="input-group">
                    <input type="text" name="q" id="q" class="form-control" value="@ViewBag.Q" placeholder="@_T["Search for"]..." aria-label="@_T["Search for"]..." />
                    <span class="input-group-btn">
                        <input type="submit" class="btn btn-primary" value="@_T["Search"]" />
                    </span>
                </div>
            </form>        
            @Html.Raw(PrepareMenuHtml(ThemeResources.MenuLocation.Navigation, CurrentLanguage))
            <div class="userMenu">
                @await Html.PartialAsync("_SiteLoginPartial")
            </div>
        </div>
    </div>
</nav>